package model;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import us.codecraft.webmagic.model.annotation.ExtractBy;
import us.codecraft.webmagic.model.annotation.TargetUrl;

/**
 * Created by zhangcheng on 2017/4/21 0021.
 */

@Data
@Slf4j
@TargetUrl({"http://www.kuaidaili.com/free/inha/\\\\d+/"})
public class KuaiIpModel {

    @ExtractBy("//title/text()")
    private String ip;
    @ExtractBy("//title/text()")
    private String port;

    public static void main(String[] args) {
        KuaiIpModel k = new KuaiIpModel();
    }
}
